import request from '@/utils/request'

// 车辆申请分页
export function getList(params) {
  return request({
    url: '/reimbursement/list',
    method: 'POST',
    params
  })
}

// 车辆申请添加
export function addReimbursement(data) {
  return request({
    url: '/reimbursement/add',
    method: 'POST',
    data
  })
}

// 查询单条drawRegistration/projectName
export function selectReimbursement(params) {
  return request({
    url: '/reimbursement/load',
    method: 'POST',
    params
  })
}

export function selectprojectName(params) {
  return request({
    url: '/drawRegistration/projectName',
    method: 'POST',
    params
  })
}

// 删除车辆申请数据
export function deleteReimbursement(data) {
  return request({
    url: '/reimbursement/delete',
    method: 'post',
    data
  })
}

// 修改车辆申请数据
export function updateReimbursement(data) {
  return request({
    url: '/reimbursement/update',
    method: 'post',
    data
  })
}
// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}
